package message.validate.demo.pojo;

import lodsve.validate.annotations.Chinese;
import lodsve.validate.annotations.Limit;
import lodsve.validate.annotations.NotNull;
import lodsve.validate.annotations.ValidateEntity;

import java.io.Serializable;

/**
 * .
 *
 * @author sunhao(sunhao.java @ gmail.com)
 * @version V1.0, 14-9-8 下午5:47
 */
@ValidateEntity
public class Demo implements Serializable {
    @NotNull
    private Long pkId;
    @NotNull
    @Limit(min = 4, max = 10)
    @Chinese
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getPkId() {
        return pkId;
    }

    public void setPkId(Long pkId) {
        this.pkId = pkId;
    }
}
